/**
 * 
 */
package com.zhz.project.dal.ibatis;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.zhz.project.dal.daointerface.TocBmcDAO;
import com.zhz.project.dal.dataobject.TocBmc;

/**
 * @author lidian
 * 
 */
public class TocBmcDAOImpl extends SqlMapClientDaoSupport implements TocBmcDAO {
	public void insertTocBmc(TocBmc tocBmc) {
		getSqlMapClientTemplate().insert("insertTocBmc", tocBmc);
	}

	public int getAllTocBmcsCount() {
		return ((Integer) getSqlMapClientTemplate().queryForObject(
				"selectAllTocBmcsCount")).intValue();
	}

}
